<template>
  <div class="page-box h100 display-flex czbj">
    <dxtable
      :dataJson="dataJson"
      :portUrl="portUrl"
      :formJson="formJson"
      :qx="qx"
    ></dxtable>
  </div>
</template>
 <script lang='ts' setup>
import dxtable from "../../components/util/dxtable.vue";
let dataJson = [
  {
    title: "头像",
    key: "headPortrait",
    type: "img", //类型
  },
  {
    title: "账号",
    key: "accountNumber",
    search: true, // 是否在搜索栏展示
  },
  {
    title: "真实姓名",
    key: "realName",
  },
  {
    title: "昵称",
    key: "nickname",
    search: true,
  },
  {
    title: "手机号码",
    key: "phoneNumber",
    search: true,
  },
  {
    title: "最近修改时间",
    key: "addTime",
  },
];
const portUrl = "dxgjAdmin/user";
const qx = {
  DeletePermissionID: "AdministratorSettingsdel", //删除
  EditPermissionIdentifier: "AdministratorSettingsbj", // 编辑
  NewPermissionIdentifier: "AdministratorSettingsxz", // 新建
  ViewPermissionID: "AdministratorSettingsck", // 查看
};
let formJson = [
  {
    title: "账号",
    type: "input",
    key: "accountNumber",
    required: true, // 是否为必填
  },
  {
    title: "手机号码",
    type: "input",
    key: "phoneNumber",
    required: true, // 是否为必填
  },
  {
    title: "密码",
    key: "password",
    type: "password",
    required: true, // 是否为必填
  },
  {
    title: "真实姓名",
    type: "input",
    key: "realName",
  },
  {
    title: "昵称",
    type: "input",
    key: "nickname",
    search: true,
  },
  {
    title: "头像",
    key: "headPortrait",
    type: "img", //类型
    required: true, // 是否为必填
  },
];
</script>
 <style scoped>
</style>